package wifiunion.com.notice.widget.treedialog.entity;


import java.io.Serializable;

import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeChecked;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeCommunityUuid;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeName;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeParentCommunityUuid;
import wifiunion.com.notice.widget.treedialog.annotation.TreeNodeUuid;

/**
 * Created by Administrator on 2017/6/20.
 */

public class TreeEntity implements Serializable {

    /**
     *
     */
    @TreeNodeName
    private String name;

    @TreeNodeCommunityUuid
    private String communityUuid;

    @TreeNodeParentCommunityUuid
    private String parentCommunityUuid;

    @TreeNodeChecked
    private int checked;


    @TreeNodeUuid
    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }


    private boolean isLeaf = true;

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }

    public TreeEntity(String _id, String parentId, String name, String uuid) {
        super();
        this.communityUuid = _id;
        this.parentCommunityUuid = parentId;
        this.name = name;
        this.checked = 0;// 默认为0，0：未选中 1：选中
        this.uuid = uuid;
    }

    public TreeEntity(String _id, String parentId, String name, int checked, String uuid) {
        super();
        this.communityUuid = _id;
        this.parentCommunityUuid = parentId;
        this.name = name;
        this.checked = checked;
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCommunityUuid() {
        return communityUuid;
    }

    public void setCommunityUuid(String communityUuid) {
        this.communityUuid = communityUuid;
    }

    public String getParentCommunityUuid() {
        return parentCommunityUuid;
    }

    public void setParentCommunityUuid(String parentCommunityUuid) {
        this.parentCommunityUuid = parentCommunityUuid;
    }

    public int getChecked() {
        return checked;
    }

    public void setChecked(int checked) {
        this.checked = checked;
    }
}
